package cn.wolfcode.trip.base.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
@Getter@Setter
public class StrategyComment extends BaseDomain{

    public static final int STATE_COMMON = 0;//普通
    public static final int STATE_HOT = 1;//推荐

    private Long id;

    private User user;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;

    private String content;

    private String imgUrls;

    private Integer starNum;

    private Strategy strategy;
    //状态
    private Integer state;
    //文章发布发布时间
    private Date commendTime;
    //关联到攻略 跳回 页面
    private StrategyCatalog catalog;


}